package com.oracle.sbdb.dao;

import org.apache.ibatis.session.SqlSession;

import com.oracle.sbdb.model.Demo;

public class DemoDao {
	public Demo selectbyID(int id) {
		SqlSession session = SessionFactory.getSession();
		Demo res = session.selectOne("com.oracle.mybatis.DemoMapper.selectDemo", id);
		session.commit();
		session.close();
		return res;
	}
}
